package com.scenic.rd_android.jnitest;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

/**
 * Created by scenic on 15/9/20.
 */
public class JniTestActivity extends Activity{

    static {
        System.loadLibrary("MyJni");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String str = getStringFromNative();

        Toast.makeText(this,"String is " + str,Toast.LENGTH_LONG).show();
    }

    public native String getStringFromNative();
}
